package me.cjj.android.assignment.model

fun Int.toQuestionText(isFirst: Boolean = false, x: String = ""): String {
    val symbol = if (!isFirst) "+" else ""
    return if (this < 0) {
        "${this}$x"
    } else {
        if (this == 0) "" else "$symbol${this}$x"
    }
}